package com.base;

import java.util.Collection;

/**
 * @author xingdongyang
 * @date 2020/7/17
 */
public class Demo1 {

    public static void testFinally(){
        try {
            System.exit(1);
        } catch (Exception e){
            e.printStackTrace();
        }finally {
            System.out.println("asdasd");
        }
    }

    public static void testFinally1(){
        try {
            while (true) {
                System.out.println("12122");
            }
        } catch (Exception e){
            e.printStackTrace();
        }finally {
            System.out.println("asdasd");
        }
    }

    public static void main(String[] args) {
        //testFinally();
       testFinally1();
    }
}
